package com.mall.module.product.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 批量操作数据传输对象
 */
@Data
@ApiModel(description = "批量操作请求参数")
public class BatchOperationDTO {

    /**
     * 操作类型（1:上架,2:下架,3:删除,4:推荐,5:取消推荐,6:新品,7:取消新品）
     */
    @NotNull(message = "操作类型不能为空")
    @ApiModelProperty(
        value = "操作类型",
        required = true,
        example = "1"
    )
    private Integer operationType;
    
    /**
     * 商品ID列表
     */
    @NotEmpty(message = "商品ID列表不能为空")
    @ApiModelProperty(
        value = "商品ID列表",
        required = true,
        example = "[1, 2, 3]"
    )
    private List<Long> idList;
    
    /**
     * 操作人ID
     */
    @ApiModelProperty(
        value = "操作人ID",
        example = "1"
    )
    private Long operatorId;
}
